<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmPersonalAMB.aspx.vb" Inherits="TGB.FrmPersonalAMB" 
    title="Administracion de Personal" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="DIV1" style="width: 100%; height: 16px; text-align: left; background-color: transparent; color: #000066;" align="left" class="DivTitulo" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Administracion de Personal" Font-Underline="False" ForeColor="DimGray" Height="20px" Width="29%"></asp:Label></div><hr /> 
    <div id="DIV2">
    <table class="tabla" style="width: 800px; height: 80px; text-align: center;" > <tr>
</tr>
<tr>

<td align="right" style="width: 11%; height: 11px;" colspan="1">
                Numero de Legajo:</td>
                <td align="left" style="width: 11%; height: 11px;" colspan="3">
                <asp:TextBox ID="TxtNumeroLegajo" runat="server" CssClass="campotxt" Width="136px" MaxLength="5" TabIndex="1"></asp:TextBox></td>
                </tr>
        <tr>
            <td align="right" style="width: 11%; height: 10px;" colspan="1">
                Nombre/s y
                Apellido/s:</td>
            <td style="width: 10%; height: 10px;" align="left" colspan="1" >
                <asp:TextBox ID="TxtApellido" runat="server" CssClass="campotxt" Width="224px" MaxLength="100" TabIndex="2"></asp:TextBox>*</td>
            <td align="left" style="width: 6%; height: 10px;" colspan="2">
                <asp:TextBox ID="TxtNombre" runat="server" CssClass="campotxt" MaxLength="100" Width="224px" Visible="False"></asp:TextBox></td>
              </tr>
        <tr>
            <td align="right" style="width: 11%; height: 20px;">
                DU[Documento unico]:</td>
            <td style="width: 10%; height: 20px;" align="left" abbr="" >
                <asp:TextBox ID="TxtDNI" runat="server" CssClass="campotxt" Width="112px" MaxLength="8" TabIndex="3"></asp:TextBox>
                *
                <asp:Label ID="Label1" runat="server" CssClass="LblInfo" 
                    Text="valores sin punto" Width="96px"></asp:Label>
                <asp:RegularExpressionValidator ID="RExTxxtDNI" runat="server" ControlToValidate="TxtDNI"
                    ErrorMessage="El Formato No Corresponde" ValidationExpression="^((\d{8})|(\d{8}))$"></asp:RegularExpressionValidator>
            </td>
            <td align="right" style="width: 6%; height: 20px;">
                </td>
            <td style="width: 25%; height: 20px;" align="left" >
            <asp:HiddenField ID="HFId" runat="server" Value='<%# Bind("Legajo") %>' />
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 11%; height: 25px;">
                Domicilio:</td>
            <td style="width: 10%; height: 25px;" align="left" >
                <asp:TextBox ID="TxtDomicilio" runat="server" CssClass="campotxt" Width="224px" Height="48px" MaxLength="200" TabIndex="6" TextMode="MultiLine"></asp:TextBox></td>
            <td align="right" style="width: 6%; height: 25px;">
                Localidad</td>
            <td style="width: 25%; height: 25px;" align="left" >
                <asp:DropDownList ID="CboProvincia" runat="server" AutoPostBack="True" CssClass="CampoCbo" TabIndex="4" AppendDataBoundItems="True" Width="144px">
                    <asp:ListItem Value="-1">NINGUNO</asp:ListItem>
                </asp:DropDownList>*<br />
                <br />
                <asp:DropDownList ID="CboLocalidad" runat="server" CssClass="CampoCbo" Height="200px" TabIndex="5" Width="288px" Font-Overline="True" AppendDataBoundItems="True" CausesValidation="True" ToolTip="Seleccione una localidad">
                    <asp:ListItem Value="-1">Seleccione una Localidad</asp:ListItem>
                </asp:DropDownList>*<br />
                <asp:Label ID="Label2" runat="server" CssClass="LblInfo" Text="La localidad no esta Cargada??"
                    Width="184px"></asp:Label>
                <asp:LinkButton ID="LnkCargarLocalidad" runat="server" Width="16px">...</asp:LinkButton></td>
        </tr>
        <tr>
            <td align="right" style="width: 11%; height: 14px">
                Fecha de Nacimiento</td>
            <td align="left" style="width: 10%; height: 14px">
                &nbsp;<BDP:BasicDatePicker ID="DPCumple" runat="server" DateFormat="dd-MMM-yy" DisplayType="LabelAndImage"
                    ReadOnly="True">
                </BDP:BasicDatePicker>
            </td>
            <td align="right" style="width: 6%; height: 14px">
            </td>
            <td align="left" style="width: 25%; height: 14px">
                </td>
                
        </tr>
        

        <tr>
            <td align="right" style="width: 11%; height: 13px">
                Telefono</td>
            <td align="left" style="width: 10%; height: 13px">
                <asp:TextBox ID="TxtTelefono" runat="server" CssClass="campotxt" Width="224px" TabIndex="8" MaxLength="30"></asp:TextBox></td>
            <td align="right" style="width: 6%; height: 13px">
                Mail:</td>
            <td align="left" style="width: 25%; height: 13px">
                <asp:TextBox ID="TxtMail" runat="server" CssClass="campotxt" Width="200px" TabIndex="9" MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 11%; height: 12px" colspan="4">
                &nbsp;* Campos Obligatorios</td>
            
        </tr>
        
       
        
        <tr>   <td align="center" colspan="4" style="height: 30px"> 
                <asp:Label ID="LblErrorPersonal" runat="server" CssClass="LabelError" Text="ErrorLbl" Height="16px" Width="720px"></asp:Label></td>      </tr>
        <tr>
            <td align="center" colspan="4" style="height: 13px">
            <asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink" TabIndex="10">Guardar</asp:LinkButton>
            <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink" TabIndex="-1">Eliminar</asp:LinkButton>
            <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink" TabIndex="13">Buscar</asp:LinkButton>
            <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink" TabIndex="14">Cancelar</asp:LinkButton>&nbsp;
            </td>
        </tr>
        
    </table>
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridPersonal" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC"
            BorderWidth="1px" CellPadding="4" CssClass="tabla" ForeColor="Black" GridLines="Horizontal" PageSize="25" Style="width: 100%; vertical-align: middle; text-align: center; font-size: 12px; font-family: Calibri;" Width="812px" TabIndex="-2" BorderStyle="None">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <Columns>
                <asp:TemplateField HeaderText="Legajo">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Legajo") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkLegajo" runat="server" CommandName="Select">Legajo</asp:LinkButton>
                        <asp:HiddenField ID="HFPersonal" runat="server" Value='<%# bind("legajo") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="NombreApellido">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("NombreApellido") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblNombreApellido" runat="server" Text='<%# Bind("NombreApellido") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="DNI">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("DNI") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblDNI" runat="server" Text='<%# Bind("DNI") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Domicilio">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Domicilio") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblDomicilio" runat="server" Text='<%# Bind("Domicilio") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="FechaNacimiento">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FechaNacimiento") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblFechaNacimiento" runat="server" Text='<%# Bind("FechaNacimiento") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Telefono">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Telefono") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblTelefono" runat="server" Text='<%# Bind("Telefono") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Observaciones">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Observaciones") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblObservaciones" runat="server" Text='<%# Bind("Observaciones") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Localidad">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("CodigoLocalidad") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblLocalidad" runat="server" Text='<%# Bind("Localidades") %>'></asp:Label>
                        <asp:HiddenField ID="HFLocalidad" runat="server" Value='<%# bind("CodigoLocalidad") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="#CC3333" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
  <asp:Button ID="BtnRefrescar" runat="server" BackColor="Transparent" BorderColor="Transparent" BorderStyle="None" ForeColor="Transparent" Height="0px" Width="0px" />      
        
    </div>
</asp:Content>
